package demo.android.com.mvpdemo.myRetrofit;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import demo.android.com.mvpdemo.R;

/**
 * Created by Vya on 2018/2/2 0002.
 */

public class TestActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test_rxjava_activity);

        RetrofitClient.getServiceApi().userLogin("darren","1111").enqueue(new Callback<UserLoginResult>() {
            @Override
            public void onResponse(Call<UserLoginResult> call, Response<UserLoginResult> response) {

            }

            @Override
            public void onFailure(Call<UserLoginResult> call, Throwable t) {

            }
        });
    }
}
